import App from './App.vue'

import { setupVab } from '~/library'
import { setupStore } from '/@/store'
import { setupRouter } from '/@/router'
import ElementPlus from 'element-plus'
import { _Message } from './utils/message'

const app = createApp(App)
app.use(ElementPlus)

// 全局吐司提示
app.config.globalProperties.$Message = _Message

setupVab(app)
setupStore(app)
setupRouter(app)
  .isReady()
  .then(() => app.mount('#app'))
